#!/bin/bash

cd ~/dsoframer

### 停止
pid=`ps aux|grep java|grep dsoframer80|awk '{print $2}'`
if [ $pid -gt 0 ]; then
    kill -9 $pid
fi

### 运行
mv WEB-INF/lib/license.lic .
echo `date +%F\ %T` > nohup.out
nohup java -Denv=dsoframer80 org.springframework.boot.loader.WarLauncher &
sleep 1
mv license.lic WEB-INF/lib/

### 日志
tail -111f nohup.out
